Xbasic
WAITDIALOG.USER_CANCELED Function
Syntax
Result_Flag as L = User_Canceled as L()
Arguments
- Result_Flag
.T. = The user pressed the Cancel button.
Description
The .USER_CANCELED()returns .T. if the user presses the Cancel button on a Wait Dialog.
Example
dim colors as C dim x as waitdialog dim i as N dim count as N colors = a5.Color_Enum() x.Create(3,"percent") x.AllowCancel(.t.) i = 0 count = line_count(colors) for each c in colors i = i + 1 x.set_percent(i,count) x.set_bottom_message(c.value) y = x.user_canceled() if x.user_canceled()then q = ui_msg_box("Notice","Are you sure?",UI_YES_NO_CANCEL) if q = ui_yes_selected then goto next2 else x.Cancel_Cancel() end if end if next next2: x.close()
Limitations
Desktop applications only.
See Also